<?php

use Drupal\shusy_category\Entity\ShusyCategory;

function shusy_category_shusy_category_add_page() {
  $e = new ShusyCategory();
  module_load_include('inc', 'shusy_category', 'shusy_category.forms');
  return drupal_get_form('shusy_category_shusy_category_entity_form', $e, 'add');
}

function shusy_category_shusy_category_view_page(ShusyCategory $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_category_shusy_category_edit_page(ShusyCategory $e) {
  module_load_include('inc', 'shusy_category', 'shusy_category.forms');
  return drupal_get_form('shusy_category_shusy_category_entity_form', $e, 'edit');
}

function shusy_category_shusy_category_delete_page(ShusyCategory $e) {
  module_load_include('inc', 'shusy_category', 'shusy_category.forms');
  return drupal_get_form('shusy_category_shusy_category_delete_form', $e);
}

